/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Application.Elements;
import Application.SkeletonHelper;
/**
 * Es kaput megvalosito osztaly.
 * Legalabb 2 bemenetu.
 * @author Stikmann
 */
public class AND extends Element{

    public AND(){
        SkeletonHelper.methodstart("Constructed "+this.toString());
        SkeletonHelper.methodend();
    }

    /**
     * Elvegzi az eS kapu szimulaciojat, azaz a kimenetere a bemenetek
     * szorzatat rakja.
     * @return Ha valtozott a kimenet, true, egyebkent false
     */
    public boolean simulate(){
        SkeletonHelper.methodstart(this.toString()+"::simulate()");
        for(Element elem:inputs)
            elem.getOut();
        SkeletonHelper.methodend("return: ????");
        return false;
    }
}
